/**
 * 
 */
package jvs.peer.io;

/**
 * @author qiangli
 *
 */
public interface Session {
	public interface Callback {
		public void onMessage(String text);
		public void onError(String text);
	}
	public void send(String text);
	public void open() throws Exception;
	public void close();
	public boolean isActive();
}
